package com.qfedu.pojo.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;


/**
 * @author:User
 * @time:2022/9/27
 * @explain:
 */
@Data
@Entity
@Table(name = "orders")
public class Orders {
    @Id
    @Column(name = "order_id")
    private String orderId; //订单id uuid

    @Column(name = "create_time")
    private Date createTime;//订单生成时间

    @Column(name = "user_id")
    private Integer userId;//下单用户

    @Column(name = "address")
    private String address;//用户地址

    @Column(name = "telephone")
    private String telephone;//用户电话

    @Column(name = "status")
    private Integer status;//订单支付状态

    @Column(name = "user")
    private String  user;//收货人

    @Column(name="order_item")
    private Integer orderItem;//商品项id

    @Column(name = "dis_time")
    private Date disTime;//配送时间



    @Column(name ="orders_price")
    private Double ordersPrice;//订单总价


}
